home *** CD-ROM | disk | FTP | other *** search
- It was on the night of 13-Dec-97, when no creatures were stirring, and all was
- silent. Suddenly, Jens jumped out from behind a rock and wouldnt stop shouting
- about "GUI extension.." until I was forced to knock them out:
- -> Hello..
-
- -> I've started to use the GUI extension (great stuff) but a few questions
- -> has popped up:
-
- -> 1) The command 'Gui Title' is noted in the guide, however that command
- -> does not exist (Looked in the lib with a hex-monitor and found that
- -> the command is called 'Gui Titles')..
-
- This is a known bug in the guide file. You also have to have 2 entries for
- each command, where IIRC the guide said you could use just one.
-
- -> 2) While looking in the lib I noted that the extension calls up the
- -> 'Gadtools.Library'. Is this a rom-lib (like exec) or should it be
- -> in my libs: (it isn't there but the extension runs great anyway)..
-
- It works fine without it, as it is a ROM lib.
-
- -> 3) There's a slight bug in 'Gui Asl', if I pad the path with '/' (like
- -> 'ab3:includes/' then the returned filename holds two '/' in row
- -> ('ab3:includes//test.lnk') and the file can't be found by amos..
-
- Yes, I fixed this problem in one of my examples for the next release of the
- extension. Le,mme get the code...
-
- If A=9
- ' Grab a file from the user
- Do
- F$=Gui Asl$("Pick a List of Email
- recipients..."+Chr$(0),Dir$,"",Chr$(0))
- F$=Gui Dir$
- If Mid$(F$,Len(F$),1)<>"/" and Mid$(F$,Len(F$),1)<>":" : F$=F$+"/" :
- End If
- F$=F$+Gui File$
-
- If Gui File$="" : Exit : End If : Rem Exit
-
- If Exist(F$) and F$<>""
- Dir$=Gui Dir$
- TEMP$="" : Gui Set 1,2,0,Varptr(TEMP$)
- TEMP$=F$ : Gui Set 1,2,0,Varptr(TEMP$)
- Exit
- End If
- Loop
- End If
-
- This is the code I use in my MPDMailpostV2 routine, and it handles it all
- fine. It also handles the bug for when you change directorys, as it will
- only add the / onto the end if it really needs it.
-
- Any other questions, just ask!
-
- Andrew "Mushroom" Kellett
- --
- Email: Andy Kellett <mushypd@redrose.net> Team *AMOS* + IAPA Team *AMIGA*
- alt.religion.amos - AMOS now on usenet! AMOS Mailinglist also mirrored
-
- World's Largest AMOS Homepages - http://www.mushy-pd.demon.co.uk
- Official F1 Software Distributor for the USA
-
- Massive FTP site with AMOS/C64 and Mods/Samples + more at
- mushy-pd.dyn.ml.org
-
-
-